//
//  KqTool.h
//  kq_flutter_widgets
//
//  Created by wtb on 2023/3/9.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface KqTool : NSObject
//字符串MD5加密
+(NSString *)stringToMd5:(NSString *)string;

//创建沙盒临时文件，创建Temporary下的folderName名称的文件夹，folderName为空则不创建文件夹
+(NSString *)getTmpImagePath:(NSString *)fileName folderName:(NSString *)folderName;

//从沙河临时文件里查找图片
+(NSString *)findImageToTmpFolder:(NSString *)fileName;

//跳转原生
+(void)kqPushWithUrl:(NSString *)url property:(NSDictionary *)property;

//返回
+(void)goBack;

//获取导航
+(UINavigationController *)getNav;

//获取rootController
+(UIViewController *)getRootController;

//回调首页
+(void)resetRootViewController;

///untiy3d
+ (void)setUntiyRootController:(NSDictionary *)param;

//获取当前时间戳
+(NSString *)getNowTimeTimestamp;

//获取属性值
+(id)getPropertyValueWithObj:(id)obj key:(NSString *)key;

//十六进制颜色转UIColor
+(UIColor *)colorWithHex:(int)hex;

//回到登录页面
+(void)exitLogin;

//获取boundle图片
+ (UIImage *)tz_imageNamedFromMyBundle:(NSString *)name;

//跳转appstore
+ (void)goAppStore:(NSString *)ituneId;

+ (long)getTimeInterval:(NSDate *)date;

@end

NS_ASSUME_NONNULL_END
